"""
    接口自动化基础之Pytest插件，规则，运行方式以及标记详解
"""
import pytest

@pytest.mark.ui
@pytest.mark.ut
@pytest.mark.xfail
def test_ok():
    print("我是第一个测试用例判断1是否恒等于1")
    assert 1 == 1


""""""

# @pytest.mark.skip
@pytest.mark.xfail
def test_no():
    print("我是第二个测试用例判断1是否恒等于2")
    assert 1 == 2


@pytest.mark.api
@pytest.mark.skipif("1==1")
def test_a():
    print("我是第三个测试用例a")


@pytest.mark.ui
def test_b():
    print("我是第四个测试用例b")


@pytest.mark.ut
def test_c():
    print("我是第三个测试用例c")
